package io.renren.modules.file.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.file.dao.LocStoraDao;
import io.renren.modules.file.entity.LocStoraEntity;
import io.renren.modules.file.service.LocStoraService;


@Service("locStoraService")
public class LocStoraServiceImpl extends ServiceImpl<LocStoraDao, LocStoraEntity> implements LocStoraService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LocStoraEntity> page = this.page(
                new Query<LocStoraEntity>().getPage(params),
                new QueryWrapper<LocStoraEntity>()
        );

        return new PageUtils(page);
    }

}
